From: Jasper St. Pierre Date: Mon, 18 Mar 2013 20:26:13 +0000 (-0400) Subject: grabHelper: Ensure we reset ignoreRelease when we drop our event handler X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4437 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=aec0e75d7332e56a6fb14ca06a18adf3adab2b57;p=gnome-shell.git grabHelper: Ensure we reset ignoreRelease when we drop our event handler Since we drop our event handler, we won't see ever the release event from the button press, so unset the flag so it doesn't muck with the next time somebody takes a grab. https://bugzilla.gnome.org/show_bug.cgi?id=696102 --- diff --git a/js/ui/grabHelper.js b/js/ui/grabHelper.js index 2547da679..0eed19bd4 100644 --- a/js/ui/grabHelper.js +++ b/js/ui/grabHelper.js @@ -308,6 +308,8 @@ const GrabHelper = new Lang.Class({ if (!this.grabbed && this._capturedEventId > 0) { global.stage.disconnect(this._capturedEventId); this._capturedEventId = 0; + + this._ignoreRelease = false; } if (hadFocus) {